package com.cheneyjoo.controller;

import com.cheneyjoo.factory.ClassFactory;
import com.cheneyjoo.model.SYS_USER;
import com.cheneyjoo.service.ISysUserService;

public class SysUserController {
    private final ISysUserService userService;

    public SysUserController() {
        userService= ClassFactory.getSysUserService();
    }

    /**
     * 登录接口
     * @param userName 账户名
     * @param password 密码
     * @return 用户对象
     */
    public SYS_USER login(String userName,String password){
        return  userService.login(userName, password);
    }

}
